package me.send.data.service.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import me.send.business.base.Pager;
import me.send.data.service.mapper.BrokerWalletMapper;
import me.send.data.service.pojo.BrokerWallet;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BrokerWalletService {
    @Autowired
    private BrokerWalletMapper brokerWalletMapper;
    
   
    // 使用分页查询
    public List<BrokerWallet> list(String phone,
    		Integer status,Pager page) {
    	Map<String, Object> parameter = new HashMap<String, Object>();
    	parameter.put("phone", phone);
    	parameter.put("status", status);
    	parameter.put("page", page);
    	List<BrokerWallet> rows = brokerWalletMapper.list(parameter);
    	return rows;
    }
    public Integer count(String phone,
    		Integer status) {
    	Map<String, Object> parameter = new HashMap<String, Object>();
    	parameter.put("phone", phone);
    	parameter.put("status", status);
    	Integer rows = brokerWalletMapper.count(parameter);
    	return rows;
    }
    
    
   
}
